<?php
/*$a ="http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?includeEntityTypes=countryRegion&o=xml&key=AjyC0pJX36cF2dV8X3LUxtFaYb9hNfmprGxQDxSAyLSxHRPSGI-bkL2oO5zIhUfa";
$api_url="http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&key=AjyC0pJX36cF2dV8X3LUxtFaYb9hNfmprGxQDxSAyLSxHRPSGI-bkL2oO5zIhUfa";
$json = file_get_contents($a);
//$obj = json_decode($json);
echo $json;

for($i=0; $i<count($obj['resourceSets']); $i++) {
    echo "estimatedTotal is " . $obj['resourceSets'][$i]["estimatedTotal"];// . " and the excerpt is " . $obj['reviews'][$i]["excerpt"] . "<BR>";
}

foreach($json2->resourceSets[0]->resources->address as $value) {

    echo $value->addressLine;

}
*/
echo  date("D M d, Y G:i a");
?>